<template>
	<view class="inline-flex center px-4 py-2 radius-4 bg-secondary-warning fs-12 font-normal text-white">
		<template v-if="type===2">
			<text>{{number}}人报名 返¥{{price}}</text>
		</template>
		<template v-else>
			<text>{{number}}人报名 ¥{{price}}</text>
		</template>
	</view>
</template>

<script setup>
	const props = defineProps({
		number: {
			type: [Number, String],
			required: true
		},
		price: {
			type: [Number, String],
			required: true
		},
		type:{
			type:Number,
			default:1
		}
	})
</script>
